home *** CD-ROM | disk | FTP | other *** search
-
-
- POWER C SHELL
- VERSION 1.0
-
- Copyright 1991 by Chuck Steenburgh
-
- DISTRIBUTION LIMITATIONS: This is a copyrighted shareware
- program. You have a limited license to try out this soft-
- ware on a single computer for a period of 30 days. If you
- continue to use the software after this 30-day trial period,
- you must become a registered user.
-
- REGISTRATION: There are two ways to register this program.
- The easiest is to become a member of the unofficial Power C
- Users Group on CompuServe. Send E-mail to the author to
- join; membership is completely free and the organization is
- very informal. Either form of registration will enable you
- to receive a copy of the Power C source code for the program.
-
- Alternately, you may register by sending a voluntary
- contribution of $10 to the address shown at the bottom of
- this documentation.
-
- DISCLAIMER: The author warrants this program to do abso-
- lutely NOTHING. It does, however, in my experience, per-
- form as described in this documentation. The author accepts
- no liability for any damage this program may cause to your
- PC (although I really can't envision this happening). USE
- OF THIS PROGRAM IS AT YOUR OWN RISK.
-
- Now that the semi-legal mumbo-jumbo is out of the way,
- welcom to POWER C SHELL Version 1.00. This program
- was written as a simple aid to Power C programmers.
- POWER C SHELL Version 1.00 has the following features:
-
- - Simplify editing, compiling, and debugging
- of POWER C programs without having to fool with
- the DOS command line;
-
- - Customizable editor and viewer
-
- - Customizable compile options for Power C compiler
-
- - Ability to review C.ERR error listing without
- leaving the shell
-
- - Test run your executable programs without
- leaving the shell
-
-
-
- STARTING POWER C SHELL VERSION 1.00
-
- Power C Shell itself requires a mere 26K of free memory
- to run, although 81K is preferred. To this amount, however,
- you must add the greater of the memory required by your editor,
- viewer, and whatever C program you happen to be working on.
- Power C Shell remains in memory when these programs are exec-
- uting.
-
- Environment Variables
- =====================
-
- Power C Shell configures itself through the use of
- environment variables. These are much fatser and "cleaner"
- than the use of a configuration file. Power C Shell under-
- stands the following environment variables:
-
- PCEDIT: complete path of your editor
- PCEDITP: any command line parameters used by your editor
- PCVIEW: complete path of your viewer
- PCVIEWP: any command line parameters used by your viewer
- COMPILE: default compile options to be used by PC.EXE
-
- Environment variables are established by use of the DOS
- SET command. To set the name of your viewer to C:\LIST.COM,
- simply type the following at the DOS command line:
-
- SET PCVIEW=C:\LIST.COM
-
- Use a similar procedure to set the other variables. To
- set your default compile options to "/e/ms" (link file, use
- small memory model), type the following on the DOS command line:
-
- SET COMPILE=/e/ms
-
- If, while entering your environment variables, you get
- the message "Out of environment space" or something similar,
- you need to edit your AUTOEXEC.BAT file. Look for a state-
- ment similar to the following:
-
- SET COMSPEC=c:\dos\command.com
-
- To increase the environment space, change the statement
- to something like this:
-
- SET COMSPEC=c:\dos\command.com /e:384
-
- In the example above, 384 is the new number of bytes
- reserved for the environment (160 is the default). DOS
- will always round this number to a multiple of 16. 384
- bytes should be enough for most users, although you may
- need more. The limit is 32,768, although there should
- never be a need for more than 1 or 2K. See your DOS man-
- ual for more details on setting the environment size.
- Note that you must reboot your computer after editing your
- AUTOEXEC.BAT file for any changes to take effect.
-
-
- In order to use the editing and viewing options of
- Power C Shell, you MUST specify the PCEDIT and PCVIEW
- environment variables. Compile options can be changed
- from inside the program itself.
-
- The PCEDITP and PCVIEWP parameter variables assume
- that your editor and viewer accept command line switches
- AFTER the filename to edit/view. For example:
-
- <PCEDIT> (filename) <PCEDITP>
- edit program.c -x -e
-
- If your editor/viewer only accept parameters and
- switches BEFORE the filename, enter them as part of
- the PCEDIT or PCVIEW varaibles. For example:
-
- <PCEDIT> (filename)
- edit -x -e program.c
-
- you would enter the following command on the DOS
- command line prior to starting Power C Shell:
-
- SET PCEDIT=edit.exe -x -e
-
-
- Running Power C Shell
- =====================
-
- To run Power C Shell, simply type PCSHELL at the
- DOS command line. (NOTE: you must either be in the
- same directory as PCSHELL.EXE, or you must have that
- directory specified in your PATH statement.)
-
-
- A Word About Directories
- ========================
-
- The optimum configuration for Power C Shell is
- to have the PCSHELL.EXE program, all of your POWER C
- programs and files, and your C source files in the
- same directory. PCSHELL will automatically search
- for your viewer and editor on the DOS path if you
- do not specify a complete path in the environment
- variables.
-
-
- POWER C SHELL MENU OPTIONS
-
-
- [1] Edit C Source File
-
- Selecting "1" and pressing enter will invoke your
- editor to edit the file specified as your working file.
- The extension ".c" is automatically appended. See the
- explanation for menu item [5] below. Upon exiting your
- editor, you will be returned to the Power C Shell main
- menu.
-
-
-
- [2] Compile C Source File
-
- Selecting "2" and pressing enter will invoke
- the PC.EXE compiler with any command line parameters
- you may have specified. See the explanation for
- menu items [3] and [5] below. The extension ".c"
- is automatically appended to the name of your working
- file which is then compiled.
-
- In order to produce an executable file (.exe),
- make sure you specify "/e" as one of your compile
- options.
-
- In order to produce an up-to-date C.ERR file,
- make sure you specify "/c" as one of your compile
- options.
-
-
- [3] Set Compile Options
-
- Select this option to enter the compile options
- for the Power C compiler. You will see the following
- line near the bottom of the screen:
-
- Enter compile options:
-
- Simply type the compile options exactly as they
- would be entered on the command line. For example,
- to force use of 8087/80287 floating point library and
- use the large memory model, enter "/f8/ml" and then
- press enter.
-
-
- [4] View C.ERR File
-
- Select this option to view the compile error
- listing. Your viewer will be invoked for the
- C.ERR file.
-
-
- [5] Set Working File
-
- Selecting this option allows you to specify
- the name of your source file. Enter the filename
- WITHOUT any extensions (these will automatically
- be appended as needed by the program).
-
-
- [6] Test Execute File
-
- This option will execute your program. To
- work correctly, you must have properly compiled
- the source file currently named as your working
- file. Upon properly exiting the program, you
- will be returned to the Power C Shell. There
- must be enough free memory available for both
- Power C Shell (26-81k) and your program.
-
-
- You will first be prompted for any command
- line parameters your program will need. Type the
- parameters exactly as they would appear on the
- command line, then press enter. If your program
- uses no arguments, simply press enter.
-
-
- [7] Exit to DOS
-
- Select this option to leave Power C Shell
- and return to DOS.
-
-
-
- SYSTEM LIMITATIONS
-
- Some of the environment variables and other inputs
- to the program have strict size limitations as follows:
-
- Working file name: 8 characters, NO EXTENSION
- PCEDIT variable: 39 characters
- PCEDITP variable: 11 characters
- PCVIEW variable: 39 characters
- PCVIEWP variable: 11 characters
- COMPILE variable: 11 characters
- Compile options: 11 characters
- Command line arguments for test execution: 39 characters
-
-
- MISCELLANEOUS
-
- Direct questions, comments, or registrations to the
- program author:
-
- Chuck Steenburgh
- 304A North Main Street
- Lexington, VA 24450
-
- (703)464-5290 evenings
- CIS ID: 72330,1776
-
- Power C Users Group
- IBM Programming Forum (GO IBMPRO)
- C Message Section
-
-
-